package org.onionframework.persistence.query.projection;

public class RowsConcatProjection extends Projection {

	private String separator = ",";
	private boolean grouped = false;
	
	public RowsConcatProjection(String property, String separator, boolean grouped) {
		super(ProjectionType.rowsConcat, property);
		this.separator = separator;
		this.grouped = grouped;
	}
	
	public RowsConcatProjection(String property, String separator, boolean grouped, String alias) {
		this(property,separator,grouped);
		this.alias = alias;
	}

	/**
	 * @return the separator
	 */
	public String getSeparator() {
		return separator;
	}

	/**
	 * @return the grouped
	 */
	public boolean isGrouped() {
		return grouped;
	}
}
